@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<!-- <link href="/admin/css/custom.css" rel="stylesheet"> -->
<style>
   th,td {
    border: 0.1em solid #ccc !important
   }
</style>
@endsection
@section('content')

<div class="tables">
   <div class="table-responsive bs-example widget-shadow">
      <h4>代理商列表 :</h4>
      <table class="table table-bordered" >
         <tbody>
            @if(!null==$data)
               @foreach($data as $v) 
               <tr>
               <th></th><td></td> 
               </tr>
               <tr> 
                  <th style="text-align: center">代理商编号</th> 
                  <th scope="row" style="text-align: center">{{$v['id']}}</th> 
               </tr> 
               <tr> 
                  <th style="text-align: center">代理商名称</th> 
                  <td style="text-align: center">{!! $v['agent_name'] !!}</td> 
               </tr>
               @endforeach
            @endif  
         </tbody> 
<!--          <thead>    
            <tr>
               <th style="text-align: center">代理商编号</th>
               <th style="text-align: center">代理商名称</th>
            </tr>
         </thead>
         <tbody>
         @if(!null==$data)
            @foreach($data as $v)
               <tr> 
                  <th scope="row" style="text-align: center">{{$v['id']}}</th>
                  <td>{!! $v['agent_name'] !!}</td>
               </tr>
            @endforeach
         @endif
         </tbody>  -->
      </table>
   </div>
</div>
@endsection